home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.4 KB | 56 lines | [TEXT/GEOL] |
- Item 0585614 17-Nov-90 09:59PST
-
- From: D5997 Mgmt Sys Cons, Gregory Frazier,PRT
-
- To: MACAPP.TECH$ MacApp Technical
-
- cc: D5997 Mgmt Sys Cons, Gregory Frazier,PRT
-
- Sub: OP PROG USING FSOPEN FUNC.
-
- HELP!
-
- I am a new user to the MacApp world. I would like to compile the following
- simple program just to get familiar with Object Programming:
-
- PROGRAM Test1;
-
- USES
- MemTypes, ObjIntf;
-
- TYPE
- TFileProc=OBJECT(TOBJECT)
- FUNCTION TFileProc.FSOpen ( fileName: Str255;
- cRefNum: INTEGER;
- refNum: INTEGER): OSErr: FORWARD;
- END;
-
- VAR
- aFileProc: TFileProc;
- OSErr: OSErr;
-
- FUNCTION TFileProc.FSOpen (fileName: Str255;
- cRefNum: INTEGER;
- refNum: INTEGER): OSErr;
-
-
- BEGIN
- NEW(aFileProc);
- END.
-
- I am encountering the following PASCAL compile errors:
-
- • Error 114 - Unsatisfied forward reference for OSErr;
- • Error 102 - Identifier not declared, I think this error is in reference
- to the method FSOpen;
- • Error 117 - Function result type is inconsistent with original
- specification.
-
- Note that FSOpen is a ToolBox function. I would like to compile the function
- into a program written in OOP.
-
- My link is D5997
-
- I can be reached at 313-972-3414. Call collect.
-
-